<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ page import="myuser.*" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%
	String id=request.getParameter("id");
	UserDao dao=new UserDao();
	User user=dao.getUserId(Integer.parseInt(id));
%>
<body>
<form action="user.do?op=modify" method="post">
<table width="244" border="1">
  <tr>
    <td width="64">用户名</td>
    <td width="168">
      <input type="text" name="userName" id="userName" readonly value=<%=user.getUserName() %>>
    </td>
  </tr>
  <tr>
    <td>密码</td>
    <td>
      <input type="text" name="pwd" id="pwd" value=<%=user.getPwd() %>>
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <input type="hidden" name="id" value=<%=id %>>
      <input type="submit" name="btn" id="btn" value="提交">
    </td>
  </tr>
</table>
</form>
<br/><br/>
<a href="main.jsp">返回主页面</a>
</body>
</html>